package com.wei.web.middleware.httpfilter.auth.security.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SecurityConfigDTO {
    private List<String> ignoreUrls;
    private List<AuthConfigDTO> authList;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AuthConfigDTO {
        private List<String> urlPatterns;
        private List<String> methods;
        private Boolean localAccess;
        private Boolean skipCsrf;
        private String authType;
    }
}
